home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
mis_cnvt
/
ascii2db
/
convdb.doc
next >
Wrap
Text File
|
1990-01-11
|
7KB
|
156 lines
'Easy Data'
Ascii to dBASE Converter
Copyright (c) 1990
by
John J. Caputo
Easy Data is a fast and simple way of converting ascii files into
dBASE compatible files. All you do is describe your ascii file to
Easy Data and it does the rest. It can even create a Clipper
format(.NTX) index file to save you the time in Clipper. Your file
descriptions are saved in mask files which can be used again later.
Files:
CONVDB.EXE Easy Data main program
CONVDB.DOC This file
DEFAULT.ADB Default ascii to dbase mask file.
DEMO.ADB Demo mask file.
DEMO.TXT Demo non field delimited ascii file for
conversion.
DEMO2.ADB Demo mask file 2.
DEMO2.TXT Demo delimited ascii file for conversion.
Specifications:
- Input ASCII files.
-with or without field delimiters.
-with or without record delimiters.
- Output dBASE compatible Data and Index files.
-up to 36 fields.
-up to 255 characters/field.
-field types C,N,D or L
- Works in interactive mode or from batch files.
Usage:
CONVDB [file_name]
[file_name] (optional) this invokes the batch mode. The
mask file_name will be loaded and the conversion process
will take place.
If file_name is omitted you go into the interactive mode
of Easy Data. The file named DEFAULT.ADB will be loaded
as the current mask.
The screen will be split in two windows. The top window is
Easy Data's main menu. The bottom window is a description of
the current conversion mask.(the mask describes the input and
output files for Easy Data)
To make a menu selection press the number of your choice. No
carriage return is needed.
To convert the demo file type:
CONVDB demo
The files demo.dbf and demo.ntx will be created.
The second demo mask should produce an identical data file.
CONVDB demo2
Menu Selections:
1.) Load Mask
This selection will prompt you for a mask name. The name
can be up to 8 characters long. The extension .ADB will
automatically be added to your mask name.
Once a mask is loaded its description will be displayed
in the lower screen window.
2.) Edit Mask
This selection allows you to edit the current mask. The
edit keys work the same as read/get in dBASE.
The edit takes place in two separate screens.
The first screen is the description window already
displayed on the screen. Most of these items describe
the input file. You must describe the following items
in this screen.
-Name: the name for this mask.
-Desc: a description of the mask.
-Input File: the input file name.
-Output File: the output file name.
-Number of Fields: the number of fields.
-Field Delimiter: the way the fields are delimited.
0 = no delimiters (ex. DATA01019012DATA)
1 = delimiters (ex. "DATA","010190",12,"DATA")
-Record Delimiter: the way the records are delimited.
0 = CR/LF pair. (most common)
1 = CR only
2 = LF only
3 = no record delimiter
-Index Expression: the index exp. for the new index file.
It must contain a valid index expression.
The index will be Clipper format (NTX).
If this is left blank no index will be created.
-Chars. to Ignore: this is for special characters which
are in your file which should be ignored. You
can have up to 10 of these characters. If any
of these characters are found in your file they
will be converted to spaces when processed.
An example would be if your file had $ signs
in front of dollar amounts. In order to place
these in a numeric field you need to strip the
dollar signs.
The second screen contains the field descripters for the
new dBASE file. These are standard dBASE field
descriptions. You need complete a description for every
field in the new database file.
-The following information is required for each field.
NAME: Name of the field (up to 10 characters)
TYPE: Type of field. C = character
N = numeric
D = date
L = Logical
LENGTH: Length of the field (up to 254).
DEC: Number of decimals in numeric field.
3.) Save Mask
This will save the current mask in the default directory.
The file name will be the same as the mask name with the
extension of .ADB. If a file already exists by that name
you will be prompted to overwrite (y/n).
4.) Convert File
This performs the actual conversion. The current mask
file will be used.
0.) Quit Easy Data and return to a dos prompt.
Now that you know how to use Easy Data and are happy with the
results its time to pay for it. All I'm ask for is a small
registration fee to cover my time. This will entitle you to free
upgrades to Easy Data.
To register please send $29.00 to: John J. Caputo
4830 S. Blvd. N.W. # 9
Canton, OH 44718
Thank You.
You should find Easy Data simple and fast to use. If you have any
questions or comments please forward them.
Trademark notice:
dBASE is a registered trademark of Ashton-Tate.
Clipper is a registered trademark of Nantucket Corp.